package com.shenchuangit.rydemo.web.system.sequence.mapper;

import java.util.List;

import com.shenchuangit.rydemo.web.system.sequence.domain.Sequence;

/**
 * 序列Mapper接口
 *
 * @author liuyu
 * @date 2021-06-10
 */
public interface SequenceMapper {
    /**
     * 查询序列
     *
     * @param id 序列ID
     * @return 序列
     */
    public Sequence selectSequenceById(Long id);

    /**
     * 查询序列列表
     *
     * @param sequence 序列
     * @return 序列集合
     */
    public List<Sequence> selectSequenceList(Sequence sequence);

    /**
     * 新增序列
     *
     * @param sequence 序列
     * @return 结果
     */
    public int insertSequence(Sequence sequence);

    /**
     * 修改序列
     *
     * @param sequence 序列
     * @return 结果
     */
    public int updateSequence(Sequence sequence);

    /**
     * 删除序列
     *
     * @param id 序列ID
     * @return 结果
     */
    public int deleteSequenceById(Long id);

    /**
     * 批量删除序列
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSequenceByIds(Long[] ids);
}
